package com.quanyan.place.entity.vo;


import java.io.Serializable;
import java.math.BigDecimal;

/**
 * PlaceSaleTimeVo
 * 销售时间 参数接受类
 * @author Li Shuai
 * @date 16/5/7
 */
public class PlaceSaleTimeVo implements Serializable {
    private String startTime;
    private String endTime;
    private BigDecimal salePrice;
    private Integer timeType;
    private Integer saleType;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        PlaceSaleTimeVo that = (PlaceSaleTimeVo) o;

        if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return false;
        if (endTime != null ? !endTime.equals(that.endTime) : that.endTime != null) return false;
        return timeType != null ? timeType.equals(that.timeType) : that.timeType == null;

    }

    @Override
    public int hashCode() {
        int result = startTime != null ? startTime.hashCode() : 0;
        result = 31 * result + (endTime != null ? endTime.hashCode() : 0);
        result = 31 * result + (timeType != null ? timeType.hashCode() : 0);
        return result;
    }

    public Integer getSaleType() {
        return saleType;
    }

    public void setSaleType(Integer saleType) {
        this.saleType = saleType;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getTimeType() {
        return timeType;
    }

    public void setTimeType(Integer timeType) {
        this.timeType = timeType;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }
}
